package com.carol.lmsbe.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 设备借用请求DTO
 */
@Data
public class EquipmentBorrowRequest {

    @NotNull(message = "设备ID不能为空")
    private Long equipmentId;

    @NotNull(message = "借用人姓名不能为空")
    private String borrowerName;

    private String borrowerPhone;

    private String borrowerDepartment;

    @NotNull(message = "借用日期不能为空")
    private LocalDateTime borrowDate;

    @NotNull(message = "预计归还日期不能为空")
    private LocalDateTime expectedReturnDate;

    @NotNull(message = "借用用途不能为空")
    private String borrowPurpose;

    private String contactPerson;

    private String contactPhone;

    private String note;
}
